from google.appengine.ext import db
class MsgName:
    TRACE       ="TRACE"
    NOTIFY_POST ="NOTIFY_POST"
class MsgDirection:
    IN  ="IN"
    OUT =   "OUT"    
class MsgStatus:
    ON ="ON"
    OFF ="OFF"
         
class Msg(db.Expando):
    name        =db.StringProperty(required=True)
    time_stamp  =db.DateTimeProperty(auto_now_add=True)
    sender    =db.StringProperty(required =True)    
    direction   =   db.StringProperty(required =True,default=MsgDirection.IN)
    status  =db.StringProperty(required =True,default=MsgStatus.ON)
    
    